#@layout()
<script>
    $("#authenticate-add").validate({
        rules:{
        
        
                "authenticate.company_name":{
                    required:true
                },
        
        
                "authenticate.company_address":{
                    required:true
                },
        
        
                "authenticate.company_charge":{
                    required:true
                },
        
        
                "authenticate.company_charge_phone":{
                    required:true
                },
        
        
                "authenticate.company_license":{
                    required:true
                },
        
        
                "authenticate.legal_idcard_front":{
                    required:true
                },
        
        
                "authenticate.legal_idcard_tails":{
                    required:true
                },
        
        
                "authenticate.charge_card":{
                    required:true
                },
        
        
                "authenticate.user_id":{
                    required:true
                },
        
        
                "authenticate.create_time":{
                    required:true
                },
        
        
                "authenticate.deletetag":{
                    required:true
                }
        
        },
        messages:{

        
        
                "blog.company_name":{
                required:"请输入公司名称..."
                },
        
        
                "blog.company_address":{
                required:"请输入公司地址..."
                },
        
        
                "blog.company_charge":{
                required:"请输入法人..."
                },
        
        
                "blog.company_charge_phone":{
                required:"请输入法人手机号..."
                },
        
        
                "blog.company_license":{
                required:"请输入营业执照..."
                },
        
        
                "blog.legal_idcard_front":{
                required:"请输入法人身份证正面..."
                },
        
        
                "blog.legal_idcard_tails":{
                required:"请输入法人身份证反面..."
                },
        
        
                "blog.charge_card":{
                required:"请输入负责人名片..."
                },
        
        
                "blog.user_id":{
                required:"请输入用户ID..."
                },
        
        
                "blog.create_time":{
                required:"请输入创建时间..."
                },
        
        
                "blog.deletetag":{
                required:"请输入删除标识..."
                }
        
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/authenticate/doAdd",
        data:$("#authenticate-add").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
     <form class="form form-horizontal" id="authenticate-add">
        #include("authenticate-form.html")
     </form>
#end